<?php

namespace Wap\Controller;

class TestController extends \Think\Controller
{

    public function index(){
        $vip_list = get_list_config('VIP_LEVEL', true);
        var_dump($vip_list[4]['buyagentorder2']);exit();
        $this->ajaxReturn($vip_list, 'json');
        setcookie("login_status", '');
        print_r($_COOKIE);
        exit();
        $vip_list = getConfigValue('vip_level');
        var_dump($vip_list);exit();
        $data = [
            [
                'sku_id' => '16',
                'name' => 'S',
            ],
            [
                'sku_id' => '21',
                'name' => '橙色',
            ]
        ];
        echo  json_encode($data);exit();
        $sku_ids_arr = [1,9,6,3];
         asort($sku_ids_arr);
        var_dump($sku_ids_arr);exit();
        $data = [];
        $data[] = [
            'pid' => '7',
            'sku_id' => '16',
        ];
        $data[] = [
            'pid' => '15',
            'sku_id' => '21',
        ];
        echo  json_encode($data);
        //[{"pid":"7","sku_id":"17"},{"pid":"15","sku_id":"21"}]
    }
}
